﻿using MODEL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace StudentManage
{
    public partial class Frm_Parameter : Form
    {
        public Frm_Parameter()
        {
            InitializeComponent();
        }

        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_Par_Update frm_Par_Update = new Frm_Par_Update(dgv_GuiZe);
            frm_Par_Update.ShowDialog();

        }

        private void Frm_Parameter_Load(object sender, EventArgs e)
        {
           dgv_GuiZe.DataSource = BLL.ParameterManage.ChaXunParameter();
        }

        //private void 删除ToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    Parameter parameter = new Parameter();

        //    DialogResult dr = MessageBox.Show("确定要删除吗？", "提示信息", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

        //    if (dr == DialogResult.Yes)
        //    {
        //        //执行删除
        //        int num = BLL.ParameterManage.

        //        if (num > 0)
        //        {
        //            MessageBox.Show("操作成功");
        //            dgv_GuiZe.DataSource = BLL.StuCardManage.StuCardService.ChaXunStudent();
        //        }
        //        else
        //        {
        //            MessageBox.Show("操作失败");
        //        }
        //    }
        //}
    }
}
